//package com.wjq.demo.feign;
//
//import okhttp3.OkHttpClient;
//import okhttp3.Request;
//import okhttp3.Response;
//
//import java.io.IOException;
//
///**
// * @author wjq
// * @since 2022-09-21
// */
//public class OkHttp {
//
//    public static void main(String[] args) {
//        String url = "https://www.baidu.com";
//        OkHttpClient client = new OkHttpClient();
//        Request request = new Request.Builder()
//                .url(url)
//                .build();
//
//        try (Response response = client.newCall(request).execute()) {
//            System.out.println(response.body().string());
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//    }
//}
